<?php

/**
 * @version February 6, 2011
 * @Author Brice
 * This is the control file.
 * It acts as the medium between the viewMajor.php file,
 * and the dbMajor.php file.
 */
class Major {

    //these private variables are only accessible in this class,
    //we have to use functions or other methods to use them
    //this file is called in viewMajor.php
    private $majorName;

    function __construct($majorName) {
        $this->majorName = $majorName;
    }

    /**
     * Sets major
     * @param $majorName
     */
    function setMajorName($majorName) {
        $this->majorName = $majorName;
    }

    /**
     * Gets the major called
     * @return major
     */
    function getMajorName() {
        return $this->majorName;
    }

}

?>
